﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<DomainModel.Entities.Task>>" %>

<div class="task-tab" name="<%= ViewData["TabTitle"] %>" 

<% if (Model.Count() == 0) {%> style="display:none;"<% } %> ><%= ViewData["TabTitle"] %></div>

<ul class="task-list">
<% if (Model.Count() > 0) {%>
    <% foreach (var task in Model){%>
        <li class="task <%= task.IsComplete == true ? "complete" : "" %>" id="task-id-<%= task.Id %>">
            <% Html.RenderPartial("TaskSummary", task); %>    
        </li>
    <% } %>
<%} %>
</ul>